package cn.net.cfss.fgbp.face.manage.model.node;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2020-2050</p>
 * <p>Company: cfss</p>
 *
 * @author lyg
 * @version 0.0.1
 * @date 2020/8/14 11:12
 * @other 以下修改下及其它信息
 * <p>v0.0.2,lyg,这是示例</p>
 */
@Data
public class AddModel implements Serializable {


    /**
     * 节点名称
     */
    @ApiModelProperty(name = "节点名称",value = "节点名称",hidden=false,required=true)
    @NotBlank(message = "节点名称不能为空")
    private String nodeName;


    /**
     * 录音目录
     */
    @ApiModelProperty(name = "录音目录",value = "录音目录",hidden=false,required=true)
    private String voiceDir;

    /**
     * 配置文件目录
     */
    @ApiModelProperty(name = "配置文件目录",value = "配置文件目录",hidden=false,required=true)
    private String confDir;

    /**
     * 节点服务端口
     */

    @ApiModelProperty(name = "节点服务端口",value = "节点服务端口",hidden=false,required=true)
    private String nodePort;

    /**
     * 节点服务IP
     */
    @ApiModelProperty(name = "节点服务IP",value = "节点服务IP",hidden=false,required=true)
    private String nodeIp;


    /**
     * 备注
     */
    @ApiModelProperty(name = "备注",value = "备注",hidden=false,required=false)
    @Max(value = 10,message = "最大长度10")
    private String remark;


    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public String getVoiceDir() {
        return voiceDir;
    }

    public void setVoiceDir(String voiceDir) {
        this.voiceDir = voiceDir;
    }

    public String getConfDir() {
        return confDir;
    }

    public void setConfDir(String confDir) {
        this.confDir = confDir;
    }

    public String getNodePort() {
        return nodePort;
    }

    public void setNodePort(String nodePort) {
        this.nodePort = nodePort;
    }

    public String getNodeIp() {
        return nodeIp;
    }

    public void setNodeIp(String nodeIp) {
        this.nodeIp = nodeIp;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
